package cn.mumzone.pos.util;

import java.util.Date;

/**
 * Created By Dlx
 * on 2019/10/11
 */
public enum DateHolder {
    INSTANCE;

    private long warehouseDate = 0;
    private long outWarehouseDate = 0;
    private long inventoryDate = 0;
    private String inventroyKey = "";
    private String outWarehouseKey = "";
    private String inWarehouseKey = "";

    public String getInventroyKey() {
        return inventroyKey;
    }

    public void setInventroyKey(String inventroyKey) {
        this.inventroyKey = inventroyKey;
    }

    public String getOutWarehouseKey() {
        return outWarehouseKey;
    }

    public void setOutWarehouseKey(String outWarehouseKey) {
        this.outWarehouseKey = outWarehouseKey;
    }

    public String getInWarehouseKey() {
        return inWarehouseKey;
    }

    public void setInWarehouseKey(String inWarehouseKey) {
        this.inWarehouseKey = inWarehouseKey;
    }


    public void setWarehouseDate(long date) {
        warehouseDate = date;
    }

    public long getWarehouseDate() {
        long l = (warehouseDate == 0) ? new Date().getTime() : warehouseDate;
        return l;
    }

    public void setOutWarehouseDate(long date) {
        outWarehouseDate = date;
    }

    public long getOutWarehouseDate() {
        long l = (outWarehouseDate == 0) ? new Date().getTime() : outWarehouseDate;
        return l;
    }

    public void setInventoryDate(long date) {
        inventoryDate = date;
    }

    public long getInventoryDate() {
        long l = (inventoryDate == 0) ? new Date().getTime() : inventoryDate;
        return l;
    }
}
